import request from '@/utils/request'
import request1 from "../../utils/request1";

// 查询报案列表
export function listRepordRecord(query) {
  return request({
    url: '/insurance/repordRecord/list',
    method: 'get',
    params: query
  })
}
// 查询报案列表
export function listRepordRecord1(query) {
  return request1({
    url: '/Totalusercount/list',
    method: 'post',
    params: query
  })
}
//核损金额
export function nuclear_damage(query) {
  return request1({
    url: '/Insurance/nuclear_damage',
    method: 'post',
    params: query
  })
}

// 查询报案详细
export function getRepordRecord(id) {
  return request({
    url: '/insurance/repordRecord/' + id,
    method: 'get'
  })
}
// 查询报案详细
export function getRepordRecord1(query) {
  return request1({
    url: '/Totalusercount/recordDetail',
    method: 'get',
    params: query
  })
}
// 职业
export function get_base_industry(query) {
  return request1({
    url: '/Insurance/get_base_industry',
    method: 'get',
    params: query
  })
}

// 新增报案
export function addRepordRecord(data) {
  return request({
    url: '/insurance/repordRecord',
    method: 'post',
    data: data
  })
}
export function addRepordRecord1(data) {
  return request1({
    url: '/Totalusercount/repordRecord',
    method: 'post',
    data: data
  })
}

// 修改报案
export function updateRepordRecord(data) {
  return request({
    url: '/insurance/repordRecord',
    method: 'put',
    data: data
  })
}

// 删除报案
export function delRepordRecord(id) {
  return request({
    url: '/insurance/repordRecord/' + id,
    method: 'delete'
  })
}

// 导出报案
export function exportRepordRecord(query) {
  return request({
    url: '/insurance/repordRecord/export',
    method: 'get',
    params: query
  })
}
// 导出报案
export function exportRepordRecord1(query) {
  return request1({
    url: '/Totalusercount/out',
    method: 'post',
    params: query
  })
}
//资料上传
// export function uploadDate(data) {
//   return request({
//     url: '/insurance/repordRecord/uploadDate',
//     method: 'post',
//     data: data
//   })
// }
export function uploadDate(data) {
  return request1({
    url: '/Totalusercount/uploadDate',
    method: 'post',
    data: data
  })
}
//报案审核
export function review(data) {
  return request({
    url: '/insurance/repordRecord/review',
    method: 'put',
    data: data
  })
}
//获取已经报案和资料上传的列表
export function listReportedAndData(query) {
  return request({
    url: '/insurance/repordRecord/listReportedAndData',
    method: 'get',
    params: query
  })
}
//获取已经报案和资料上传的列表
export function listReportedAndData1(query) {
  return request1({
    url: '/Totalusercount/listReportedAndData',
    method: 'get',
    params: query
  })
}
//核损金额
export function confirmMoney(data) {
  return request({
    url: '/insurance/repordRecord/confirmMoney',
    method: 'put',
   data: data
  })
}
//修改资料，重新提交审核
export function resubmit(data) {
  return request({
    url: '/insurance/repordRecord/resubmit',
    method: 'put',
    data: data
  })
}
//修改资料，重新提交审核
export function resubmit1(data) {
  return request1({
    url: '/Totalusercount/resubmit',
    method: 'post',
    data: data
  })
}
